package com.asktgapp.engineer.activity;

import android.support.v4.app.Fragment;

import com.asktgapp.base.BaseFragmentActivity;
import com.asktgapp.engineer.fragment.SetWithDrawPwdFragment;

/**
 * time:2018/1/18
 * Create By ZhaoKai
 * Email: dczk@foxmail.com
 * Description:
 */

public class SetWithDrawPwdActivity extends BaseFragmentActivity {
    @Override
    protected Fragment getFragment() {
        int flag = getIntent().getIntExtra("flag", 0);
        return SetWithDrawPwdFragment.newInstance(flag);
    }

    @Override
    protected String getToolbarTitle() {
        int flag = getIntent().getIntExtra("flag", 0);
        if (flag == 1) {
            return "输入新密码";
        } else
            return "设置密码";
    }
}
